package com.cqc.jdk8.Jlang.thread;

/**
 * com.cqc.jdk8.Jlang.thread.Thread2Test#threadStaticMethod()
 */
public class EThread extends Thread {
    /**
     * EThread() this.getName():Thread-0
     * EThread() Thread.currentThread().getName():main
     */
    public EThread() {
        System.out.println("EThread() this.getName():" + this.getName());
        System.out.println("EThread() Thread.currentThread().getName():" + EThread.currentThread().getName());
    }

    /**
     * ...EThread.run()...this.getName():Thread-0
     * ...EThread.run()...Thread.currentThread().getName():Thread-0
     */
    @Override
    public void run() {
        System.out.println("...EThread.run()...this.getName():" + this.getName());
        System.out.println("...EThread.run()...Thread.currentThread().getName():" + EThread.currentThread().getName());
    }
}